from frontend.roleApplication import RoleApplication;
from frontend.form import Type;


''' 
import time
 
scan=str(int(time.strftime("%S"))/10)    
if scan <=1:
    storagegalore=False
else:
    storagegalore=True
    '''     
class ScannerApplication(RoleApplication):
    """ The Physician User Interface """
    
    def __init__(self):
        super(ScannerApplication, self).__init__("storagegalore", "Scanner")
        self.register_transition_step("ScanDocument", self.scan_document_form_creator, name_fields=["sequence", "FirstName", "LastName", "DocumentNumber"])
          
    def scan_document_form_creator(self, stepname, form):
        form.add_task_label(fields=["FirstName", "LastName", "DocumentNumber"])
        
if __name__ == '__main__':
    app = ScannerApplication();
    app.MainLoop();